package com.czmh.etc.onlinepubsys.services.impl;

import com.czmh.etc.onlinepubsys.maper.EtcReplaceMapper;
import com.czmh.etc.onlinepubsys.model.EtcReplace;
import com.czmh.etc.onlinepubsys.services.EtcReplaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service("etcReplaceService")
public class EtcReplaceServiceImpl implements EtcReplaceService {
	@Autowired
	private EtcReplaceMapper etcReplaceMapper;
	
	@Override
	public EtcReplace queryObject(String id){
		return etcReplaceMapper.queryObject(id);
	}
	
	@Override
	public List<EtcReplace> queryList(Map<String, Object> map){
		return etcReplaceMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return etcReplaceMapper.queryTotal(map);
	}
	
	@Override
	public int save(EtcReplace etcReplace){
		return etcReplaceMapper.save(etcReplace);
	}

    @Override
    public int saveSelective(EtcReplace etcReplace){
        return etcReplaceMapper.saveSelective(etcReplace);
    }

    @Override
    public int saveList(List<EtcReplace> etcReplaces){
        return etcReplaceMapper.saveList(etcReplaces);
    }

	@Override
	public int update(EtcReplace etcReplace){
		return etcReplaceMapper.update(etcReplace);
	}
	
	@Override
	public int delete(String id){
		return etcReplaceMapper.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
		return etcReplaceMapper.deleteBatch(ids);
	}
	
}
